/*
 ============================================================================
 Name        : minitp.c
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

#include "commons.h"
#include "fat.c"
#include "fat-utils.h"
#include "fuse-minitp.h"
#include "persistance.h"

int main(int argc , char * argv[]) {

	extern struct fuse_operations oper;
	struct fuse_operations op;
	pthread_t tid;
	struct thread_data data;
	int8_t result;

	puts("Mapeando disco en memoria...");
	setDiskStartAddress( mapDisk(argv[1]) );

	op = oper;

	data.count = argc;
	data.value = *argv;
	data.ops = op;

	result = pthread_create(&tid , NULL , minitp_startFuse , (void *)&data);

	return EXIT_SUCCESS;
}
